package com.cy.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ConsumerHttpApi
 * @Description:类描述
 * @Author Tedu
 * @Date 2021/6/1 11:26
 * @Version V1.0
 **/
@FeignClient(name = "nacos-provider",contextId = "consumerHttpApi")
//@RestController可以省略
public interface ConsumerHttpApi {
    @GetMapping("/provider/echo1/{msg}")
    public String echoMessage(@PathVariable String msg);
}
